//
//  InviteViewController.h
//  Growth
//
//  Created by 洪波 陈 on 5/17/12.
//  Copyright (c) 2012 MEETStudio. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "WebConnection.h"
#import "WebConnetionArray.h"

typedef enum {
    kUserDataNone,
    kSearchUser,
    kRecommendUser,
}UserDataType;

@interface InviteViewController : UIViewController
<UITableViewDataSource,
UITableViewDelegate,
UISearchDisplayDelegate, 
UISearchBarDelegate,
WebConnectionDelegate,
WebConnectionArrayDelegate>
{
    UITableView *mytabelView;
    
    NSMutableDictionary *invitedFriendsDict;//标记已经邀请好友
    
    NSMutableArray *tableSections;
    NSMutableDictionary *dataSourceDict;
    
    //Search
    NSMutableArray *friendsSearchArray;
    
    NSString		*savedSearchTerm;
    NSInteger		savedScopeButtonIndex;
    BOOL			searchWasActive;
}


@property(nonatomic,retain) IBOutlet  UITableView *mytabelView;

@property (nonatomic, retain) NSMutableDictionary *invitedFriendsDict;

@property (nonatomic, retain) NSMutableArray *tableSections;
@property (nonatomic, retain) NSMutableDictionary *dataSourceDict;

//Search
@property (nonatomic, retain) NSMutableArray *friendsSearchArray;
@property (nonatomic, copy) NSString *savedSearchTerm;
@property (nonatomic) NSInteger savedScopeButtonIndex;
@property (nonatomic) BOOL searchWasActive;
@end
